const express = require('express');
const router = express.Router();
const pointsController = require('../controllers/pointsController');

// 获取用户积分
router.get('/:userId', pointsController.getUserPoints);

// 兑换积分
router.post('/redeem', pointsController.redeemPoints);

module.exports = router;